MOVE OBJECT UP

This command will move the object in a up direction relative to its forward facing angle, rather than an absolute world direction.

  Syntax
MOVE OBJECT UP Object Number, Value
  Parameters
Object Number
Integer
The object number
Value
Float
This command will move the object in a up direction relative to its forward facing angle

  Returns

This command does not return a value.

  Example Code
sync on : sync rate 60 : hide mouse:cls 0
autocam off
ObjectNumber=1
SecondObject=2
make object cone ObjectNumber,10
xrotate object ObjectNumber,90
fix object pivot ObjectNumber
color object ObjectNumber,rgb(0,255,0)
position object ObjectNumber, 0,0,0
clone object SecondObject,ObjectNumber
color object SecondObject,rgb(255,0,0)
position object SecondObject,25,0,25
while mouseclick()=0
set cursor 0,0
if leftkey()=1 then turn object left SecondObject,1
if rightkey()=1 then turn object right SecondObject,1
if upkey()=1 then move object down SecondObject,1
if downkey()=1 then move object up SecondObject,1
position camera object position x(SecondObject),object position y(SecondObject),object position z(SecondObject)+20
point camera object position x(SecondObject),object position y(SecondObject),object position z(SecondObject)
sync
endwhile
delete object ObjectNumber
delete object SecondObject
end
  See also

BASIC3D Commands Menu
Index